package com.harun;

public class Image implements Comparable<Image> {

	private Long imageId;
	
	private Integer clsId;
	
	public Image(Long imageId) {
		this.imageId = imageId;
	}
	
	public Image(Long imageId, Integer clsId) {
		this(imageId);
		this.clsId = clsId;
	}
	
	public Long getImageId() {
		return imageId;
	}
	
	public Integer getClsId() {
		return clsId;
	}
	
	public void setClsId(Integer clsId) {
		this.clsId = clsId;
	}

	public int compareTo(Image o) {
		if(o == null)
			throw new NullPointerException();
		
		return o.imageId.compareTo(this.imageId);
	}

	@Override
	public String toString() {
		return "Image [" + imageId + ", " + clsId + "]";
	}
	
}
